package com.cheejee.goodscenter.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.cheejee.goodscenter.module.entity.GoodsCategoryProperties;
import com.cheejee.goodscenter.module.entity.SkuBrandProperties;
import com.cheejee.goodscenter.module.entity.SkuCategoryProperties;
@Mapper
public interface SkuCategoryPropertiesMapper {
    int deleteByPrimaryKey(Long id);

//    int insert(SkuCategoryProperties record);

    int insertSelective(SkuCategoryProperties record);

    SkuCategoryProperties selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SkuCategoryProperties record);

//    int updateByPrimaryKey(SkuCategoryProperties record);
    // ################ 以上为mybatis generator生成 #####################
    
   	List<SkuCategoryProperties> selectBySelective(
   			@Param("skuId")Long skuId, 
   			@Param("categoryPropertiesTemplateId")Integer categoryPropertiesTemplateId, 
   			@Param("propertiesName")String propertiesName);
       
   	int deleteById(@Param("id")Long...id);
   	
   	int insertMany(@Param("properties")List<SkuCategoryProperties> properties);
   	
   	int deleteBySku(Long skuId);
}